Week OverviewMon – Fri · 10 hours total · Lab completion verified by instructor

Networking tools, remote access, firewall, NFS, and Samba

Week 6 is the most practically satisfying week of the course — students configure real network services between their two VMs and from their Linux VM to the Windows host. They set up SSH key authentication (the professional standard), configure a firewall, share files over NFS between Linux machines, and configure Samba so Windows can access Linux files. There is no Friday mini-assessment this week; the lab work is verified by the instructor throughout the week, and students use Friday to catch up and prepare for the Week 7 exam.

Week at a glance

Monday
Network Tools

ip command suite, hostname, DNS, netplan manual NIC config

Tuesday
Remote Access: SSH

openssh-server, key-pair auth from Windows host, sshd_config hardening

Wednesday
Firewall: ufw

Enable ufw safely, allow/deny rules, subnet restriction, application profiles

Thursday
NFS

/etc/exports, exportfs, mount from desktop2 and Windows host

Friday
Samba + Exam Prep

smb.conf, Windows file sharing, permissions. Afternoon: exam review and Q&A

⭐ OverTheWire BanditStanding challenge — not assessed

Week 6 target: Levels 23–26

Level 23 requires reading and understanding a cron bash script that generates a password. Level 24 involves writing your own script to brute-force a 4-digit PIN. Level 25 introduces an unusual shell (more) that must be escaped. Level 26 requires using a text editor escape to get a shell — very advanced, a genuine challenge for strong students.

Learning OutcomesBy end of Week 6, students can…
Use ip command suiteCheck NIC status, set temporary IPs, view routes, resolve DNS — compare to ipconfig/nslookup
Configure SSH key authGenerate RSA key pair on Windows, copy public key to Linux, disable password authentication
Harden sshd_configRestrict authentication methods, limit users, and verify changes take effect
Configure ufw firewallEnable ufw, allow and deny ports, verify rules, test connectivity
Set up NFS sharingConfigure /etc/exports, publish with exportfs, mount from Linux client and Windows host
Configure SambaInstall and configure smb.conf for a Windows-accessible share with correct permissions
MondayLecture + Lab 6A · 2 hrs

Network tools — ip, hostname, DNS, and netplan

0:00–0:10
Recap
0:10–0:40
Lecture
0:40–1:50
Lab 6A
1:50–2:00
Debrief
Windows bridge moment: Students with networking background will recognise everything here — they know what a gateway and DNS server are. The value is showing them the Linux tools that reveal the same information. Run both ip a and Windows ipconfig /all side by side if possible.
TuesdayLecture + Lab 6C · 2 hrs

SSH — encrypted remote access and key-pair authentication

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:50
Lab 6C
1:50–2:00
Debrief
Critical order of operations: students must verify key-based login works before setting PasswordAuthentication no. Disabling password auth without a working key locks them out of SSH completely — the only recovery is the Hyper-V console. Demonstrate this and have students test key login explicitly before the sshd_config change.
WednesdayLecture + Lab 6B · 2 hrs

ufw — the uncomplicated firewall

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:50
Lab 6B
1:50–2:00
Debrief
Critical order of operations: the most dangerous student mistake is enabling ufw before adding an SSH allow rule. Demonstrate it once quickly — enable, connection drops — then re-enable with SSH allowed first. Students who understand the failure mode will never make this mistake in a real environment.
ThursdayLab 6D · 2 hrs

NFS — network file sharing between Linux machines

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:50
Lab 6D
1:50–2:00
Debrief
Two-VM payoff: This is the first lab where both desktop1 and desktop2 are used simultaneously in a client-server relationship — exactly as they were set up in Week 1. Students who have maintained both VMs cleanly will find this straightforward; those who neglected desktop2 will need to catch up.
FridayLab 6E + Exam Prep · 2 hrs

Samba — Windows-compatible file sharing from Linux

0:00–1:20
Lab 6E — Samba
1:20–1:55
Exam Q&A
1:55–2:00
Wrap
No mini-assessment this week. Lab completion across the week is verified by the instructor via spot checks. Students should have working SSH key auth, a configured ufw, NFS mounting between both VMs, and a Samba share accessible from Windows before Friday ends.

Instructor verification checklist — Week 6

TaskHow to verify
SSH key auth working from Windows hostStudent connects from host PowerShell without password prompt
Password auth disabled in sshd_configTest with ssh -o PreferredAuthentications=password student@vm — must be rejected
ufw enabled with correct rulessudo ufw status verbose — shows SSH and Samba allowed
NFS share accessible from desktop2Student mounts share on desktop2 and reads/writes test file
Samba share accessible from Windows hostStudent maps network drive and creates a file

What you need ready before Monday

Lab 6A–6E handouts printed Both VMs (desktop1 and desktop2) running and on the same network Windows host has PuTTY and Wireshark installed (optional Telnet demo) NFS Client added to Windows via Features (can pre-install) Lab network allows VM-to-VM and VM-to-host traffic
← Week 5 Day 1 Lesson Plan → Week 7 (Exam) → Course Outline